package com.fang.api_encryption.rsa;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author Bernie
 * @Date 2023/11/17 17:47
 **/
@Component
@PropertySource("classpath:key.properties")
public class RSAKeyPKCS1 {

    @Value("${rsa.key.public}")
    private String publicKeyStr;
    @Value("${rsa.key.private}")
    private String privateKeyStr;

    public String getPublicKeyStr() {
        return publicKeyStr;
    }

    public String getPrivateKeyStr() {
        return privateKeyStr;
    }

}
